﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace PublishSoftwareWebPageCreator
{

    public class PageJson
    {
        public string title { get; set; }
        public string theme { get; set; }
        public string logo { get; set; }

        [JsonProperty("logo-title")]
        public string LogoTitle { get; set; }

        [JsonProperty("overview-title")]
        public string OverviewTitle { get; set; }

        public List<string> summary { get; set; }

        public List<Download> downloads { get; set; }
        public List<string> holder { get; set; }
        public Features features { get; set; }
        public How how { get; set; }
        public Faq faq { get; set; }
        public Story story { get; set; }
        public Testimonials testimonials { get; set; }
        public Pricing pricing { get; set; }
        public Contact contact { get; set; }
        public string domain { get; set; }
    }

    public class Download
    {
        public string href { get; set; }
        public string txt { get; set; }
    }


    public class Features
    {
        public string title { get; set; }
        public List<FeatureItem> items { get; set; }
    }

    public class FeatureItem
    {
        [JsonProperty("icon-class")]
        public string IconClass { get; set; }
        public string title { get; set; }
        public string content { get; set; }
    }

    public class How
    {
        public string title { get; set; }
        public string intro { get; set; }

        [JsonProperty("iframe-src")]
        public string IframeSrc { get; set; }
    }

    public class Contact
    {
        public string title { get; set; }
        public string intro { get; set; }
        public string email { get; set; }
        public string phone { get; set; }

        [JsonProperty("form-action")]
        public string FormAction { get; set; }
    }

    public class Faq
    {
        public string title { get; set; }
        public List<FaqItem> items { get; set; }
    }

    public class FeatureList
    {
        public bool check { get; set; }
        public string i { get; set; }
    }


    public class FaqItem
    {
        public string question { get; set; }
        public string answer { get; set; }
    }

    public class StoryItem
    {
        public string img { get; set; }
        public string name { get; set; }
        public string title { get; set; }
    }


    public class TestimonialItem
    {
        public string quote { get; set; }
        public string img { get; set; }
        public string name { get; set; }
        public string title { get; set; }

    }

    public class PricingItem
    {
        public string title { get; set; }
        public string price { get; set; }
        public bool ribbon { get; set; }

        [JsonProperty("feature-list")]
        public List<FeatureList> FeatureList { get; set; }
    }

    public class Pricing
    {
        public string title { get; set; }
        public List<PricingItem> items { get; set; }
    }

    public class Story
    {
        public string title { get; set; }
        public string content { get; set; }
        public List<StoryItem> items { get; set; }
    }

    public class Testimonials
    {
        public string title { get; set; }
        public List<TestimonialItem> items { get; set; }
    }


}
